package com.yonyou.cyxdms.sysAuth.service.dto.userorgsource;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangtan
 * @since 2020-07-07
 */

public class UserorgSourceDTO extends DMSBaseDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	private Long id;


	/**
	 * 厂端人员组织ID
	 */
	private String userOrgId;


	/**
	 * 线索来源ID集合
	 */
	private String clueSourceids;

	/**
	 * 线索来源名称集合
	 */
	private String clueSourceNames;



	public UserorgSourceDTO() {
		super();
	}

	public String getClueSourceNames() {
		return clueSourceNames;
	}

	public void setClueSourceNames(String clueSourceNames) {
		this.clueSourceNames = clueSourceNames;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserOrgId() {
		return userOrgId;
	}

	public void setUserOrgId(String userOrgId) {
		this.userOrgId = userOrgId;
	}

	public String getClueSourceids() {
		return clueSourceids;
	}

	public void setClueSourceids(String clueSourceids) {
		this.clueSourceids = clueSourceids;
	}

	@Override
	public String toString() {
		return "UserorgSourceDTO{" +
		"id=" + id +
		", userOrgId=" + userOrgId +
		", clueSourceids=" + clueSourceids +
		"}";
	}
	/**
	 * 将DTO 转换为PO
	 * //对某个对象属性进行赋值
	 * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param poClass dto 需要转换的dto
	 * @author zhangtan
	 * @since 2020-07-07
	 */
	@Override
	public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
		return super.transDtoToPo(poClass);
	}

	/**
	 * 将DTO 转换为PO
	 * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
	 * @param po 需要转换的对象
	 * @author zhangtan
	 * @since 2020-07-07
	 */
	public <T extends BasePO> void transDtoToPo(T po) {
		BeanMapperUtil.copyProperties(this, po, "id");
	}

}
